package com.cskaoyan.market.controller;

import com.cskaoyan.market.service.WxHomeService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MYM
 * @Date: 2024/05/21/11:28
 * @Description:
 */
@RestController
@RequestMapping("/wx/home")
public class WxHomeController {
    @Autowired
    WxHomeService wxHomeService;
    @GetMapping("/index")
    public Object getHome(){
        return ResponseUtil.ok(wxHomeService.getHome());
    }
}
